using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class Mp3Info
	{
		#region CONSTRUCTORS
		public Mp3Info()
		{
		
			this.m_mp3ID = Util.NULL_LONG;
			this.m_mp3Name1 = Util.NULL_STRING;
			this.m_mp3Name2 = Util.NULL_STRING;
			this.m_mp3Name3 = Util.NULL_STRING;
			this.m_categoryID = Util.NULL_INT;
			this.m_mp3URL = Util.NULL_STRING;
			this.m_mp3DemoURL = Util.NULL_STRING;
			this.m_mp3Length = Util.NULL_INT;
			this.m_author = Util.NULL_STRING;
			this.m_singer = Util.NULL_STRING;
			this.m_mime = Util.NULL_STRING;
			this.m_location = Util.NULL_STRING;
			this.m_sMSCount = Util.NULL_LONG;
			this.m_createdBy = Util.NULL_STRING;
			this.m_createdDate = Util.NULL_DATETIME;
			this.m_status = Util.NULL_BYTE;
		}
		public Mp3Info( long mp3ID,  string mp3Name1,  string mp3Name2,  string mp3Name3,  int categoryID,  string mp3URL,  string mp3DemoURL,  int mp3Length,  string author,  string singer,  string mime,  string location,  long sMSCount,  string createdBy,  DateTime createdDate,  byte status)
		{
		
			this.m_mp3ID = mp3ID;
			this.m_mp3Name1 = mp3Name1;
			this.m_mp3Name2 = mp3Name2;
			this.m_mp3Name3 = mp3Name3;
			this.m_categoryID = categoryID;
			this.m_mp3URL = mp3URL;
			this.m_mp3DemoURL = mp3DemoURL;
			this.m_mp3Length = mp3Length;
			this.m_author = author;
			this.m_singer = singer;
			this.m_mime = mime;
			this.m_location = location;
			this.m_sMSCount = sMSCount;
			this.m_createdBy = createdBy;
			this.m_createdDate = createdDate;
			this.m_status = status;
		}
		public Mp3Info( DataRow dRow)
		{
		
			this.m_mp3ID = (long) Util.ReplaceDBNullTo(dRow["mp3ID"], Util.NULL_LONG);
			this.m_mp3Name1 = Util.ReplaceDBNullTo(dRow["mp3Name1"], Util.NULL_STRING).ToString();
			this.m_mp3Name2 = Util.ReplaceDBNullTo(dRow["mp3Name2"], Util.NULL_STRING).ToString();
			this.m_mp3Name3 = Util.ReplaceDBNullTo(dRow["mp3Name3"], Util.NULL_STRING).ToString();
			this.m_categoryID = (int) Util.ReplaceDBNullTo(dRow["categoryID"], Util.NULL_INT);
			this.m_mp3URL = Util.ReplaceDBNullTo(dRow["mp3URL"], Util.NULL_STRING).ToString();
			this.m_mp3DemoURL = Util.ReplaceDBNullTo(dRow["mp3DemoURL"], Util.NULL_STRING).ToString();
			this.m_mp3Length = (int) Util.ReplaceDBNullTo(dRow["mp3Length"], Util.NULL_INT);
			this.m_author = Util.ReplaceDBNullTo(dRow["author"], Util.NULL_STRING).ToString();
			this.m_singer = Util.ReplaceDBNullTo(dRow["singer"], Util.NULL_STRING).ToString();
			this.m_mime = Util.ReplaceDBNullTo(dRow["mime"], Util.NULL_STRING).ToString();
			this.m_location = Util.ReplaceDBNullTo(dRow["location"], Util.NULL_STRING).ToString();
			this.m_sMSCount = (long) Util.ReplaceDBNullTo(dRow["sMSCount"], Util.NULL_LONG);
			this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
			this.m_createdDate = (DateTime) Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
			this.m_status = (byte) Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
		}
		#endregion
		
		#region ATTRIBUTES
		private long m_mp3ID;
		private string m_mp3Name1;
		private string m_mp3Name2;
		private string m_mp3Name3;
		private int m_categoryID;
		private string m_mp3URL;
		private string m_mp3DemoURL;
		private int m_mp3Length;
		private string m_author;
		private string m_singer;
		private string m_mime;
		private string m_location;
		private long m_sMSCount;
		private string m_createdBy;
		private DateTime m_createdDate;
		private byte m_status;
		#endregion
		
		#region PROPERTIES
		public long Mp3ID
		{
			get
			{
				return this.m_mp3ID;
			}
			set
			{
				this.m_mp3ID = value;
			}
		}
		
		public string Mp3Name1
		{
			get
			{
				return this.m_mp3Name1;
			}
			set
			{
				this.m_mp3Name1 = value;
			}
		}
		
		public string Mp3Name2
		{
			get
			{
				return this.m_mp3Name2;
			}
			set
			{
				this.m_mp3Name2 = value;
			}
		}
		
		public string Mp3Name3
		{
			get
			{
				return this.m_mp3Name3;
			}
			set
			{
				this.m_mp3Name3 = value;
			}
		}
		
		public int CategoryID
		{
			get
			{
				return this.m_categoryID;
			}
			set
			{
				this.m_categoryID = value;
			}
		}
		
		public string Mp3URL
		{
			get
			{
				return this.m_mp3URL;
			}
			set
			{
				this.m_mp3URL = value;
			}
		}
		
		public string Mp3DemoURL
		{
			get
			{
				return this.m_mp3DemoURL;
			}
			set
			{
				this.m_mp3DemoURL = value;
			}
		}
		
		public int Mp3Length
		{
			get
			{
				return this.m_mp3Length;
			}
			set
			{
				this.m_mp3Length = value;
			}
		}
		
		public string Author
		{
			get
			{
				return this.m_author;
			}
			set
			{
				this.m_author = value;
			}
		}
		
		public string Singer
		{
			get
			{
				return this.m_singer;
			}
			set
			{
				this.m_singer = value;
			}
		}
		
		public string Mime
		{
			get
			{
				return this.m_mime;
			}
			set
			{
				this.m_mime = value;
			}
		}
		
		public string Location
		{
			get
			{
				return this.m_location;
			}
			set
			{
				this.m_location = value;
			}
		}
		
		public long SMSCount
		{
			get
			{
				return this.m_sMSCount;
			}
			set
			{
				this.m_sMSCount = value;
			}
		}
		
		public string CreatedBy
		{
			get
			{
				return this.m_createdBy;
			}
			set
			{
				this.m_createdBy = value;
			}
		}
		
		public DateTime CreatedDate
		{
			get
			{
				return this.m_createdDate;
			}
			set
			{
				this.m_createdDate = value;
			}
		}
		
		public byte Status
		{
			get
			{
				return this.m_status;
			}
			set
			{
				this.m_status = value;
			}
		}
		
		#endregion
		
	}
}